POV-Ray : Newsgroups : povray.off-topic : Programming langauges : Re: Programming langauges Server Time
5 Sep 2024 05:22:44 EDT (-0400)
  Re: Programming langauges  
From: clipka
Date: 29 Oct 2009 11:11:26
Message: <4ae9b09e$1@news.povray.org>
Captain Jack schrieb:

> SELECT C.Name, U.UserName
> FROM tblClients AS C
> OUTER JOIN tblUsers AS U ON U.UserId = C.LastEditUserID
> 
> In that case, the column LastEditUserID is zero (another way of logically 
> saying Null, I s'pose) when the client row is new and has never been edited. 
> I do that so that in that query I always get the client data, with the user 
> name being optional.

In theory, you'd solve this by adding another entry to tblUsers with 
default values to use for new clients.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.